var express = require('express');
var router = express.Router();
var path = require('path');

//导入文件并且注册路由
/* GET home page. */
// router.get('/', function(req, res, next) {
//   res.render('user/index', { title: 'Express' });
// });

// router.get('/index',function(req,res,next){
//   var data = {title:"changed"};
//   res.render('user/index',data);
// });
var userController = require(path.join(APPLICATION_PATH,'controllers/userController'));

router.get('/',userController.index);
router.get('/user',userController.index);
router.get('/user/index',userController.index);
router.get('/user/list',userController.list);


module.exports = router;
